package dao;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Questionandanswer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "questionandanswer", catalog = "leko")
public class Questionandanswer implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private String question;
	private String answer;
	private Timestamp date;
	private String questionName;
	private String answerName;
	private String contact;
	private Timestamp answerDate;

	// Constructors

	/** default constructor */
	public Questionandanswer() {
	}

	/** full constructor */
	public Questionandanswer(Integer userId, String question, String answer,
			Timestamp date, String questionName, String answerName,
			String contact, Timestamp answerDate) {
		this.userId = userId;
		this.question = question;
		this.answer = answer;
		this.date = date;
		this.questionName = questionName;
		this.answerName = answerName;
		this.contact = contact;
		this.answerDate = answerDate;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "question", length = 65535)
	public String getQuestion() {
		return this.question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	@Column(name = "answer", length = 65535)
	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	@Column(name = "date", length = 19)
	public Timestamp getDate() {
		return this.date;
	}

	public void setDate(Timestamp date) {
		this.date = date;
	}

	@Column(name = "questionName", length = 20)
	public String getQuestionName() {
		return this.questionName;
	}

	public void setQuestionName(String questionName) {
		this.questionName = questionName;
	}

	@Column(name = "answerName", length = 20)
	public String getAnswerName() {
		return this.answerName;
	}

	public void setAnswerName(String answerName) {
		this.answerName = answerName;
	}

	@Column(name = "contact", length = 60)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "answerDate", length = 19)
	public Timestamp getAnswerDate() {
		return this.answerDate;
	}

	public void setAnswerDate(Timestamp answerDate) {
		this.answerDate = answerDate;
	}

}